package com.solo.quartz.task;

import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * 定时任务调度测试
 * @author ruoyi
 */
@Slf4j
@Component("demo")
public class SpringBeanTaskDemo {

    /**
     * 测试Spring Bean的演示方法
     */
    @SneakyThrows
    public String run(String para) {
        log.info("测试于:{}，输入参数{}", LocalDateTime.now(), para);
        return "PigQuartzEnum.JOB_LOG_STATUS_SUCCESS.getType()";
    }
}